from rest_framework import serializers
from dictapi.models import *


class WordListSerializer(serializers.ModelSerializer):
    class Meta:
        model = WordList
        fields = '__all__'


class AutoCompleteSerializer(serializers.ModelSerializer):
    class Meta:
        model = WordList
        fields = ('id', 'word', 'matchtype', 'region')


class WordEntrySerializer(serializers.ModelSerializer):
    class Meta:
        model = WordEntry
        fields = '__all__'
